import React, { lazy } from 'react'
import { RouterArr } from '../index'
import LayoutIndex from '@/layouts/index'
import { HOME_URL } from '@/config/config'

const Home = lazy(() => import('@/pages/Home/index'))

const homeRouter: Array<RouterArr> = [
  {
    element: <LayoutIndex />,
    children: [
      {
        path: HOME_URL,
        element: <Home />,
        meta: {
          requiresAuth: true,
          title: '首页',
          key: 'home'
        }
      }
    ]
  }
]

export default homeRouter
